<?php

namespace app\admin\model;

class Carinfo extends Base
{
    // 表名
    protected $name = 'bd_carinfo';

    //使用状态
    public function getcarmodelList()
    {
        return ['A'=>'平槽车','B'=>'厢式车','C'=>'面包车'];
    }

    public function carcate()
    {
        return $this->hasOne("Carinfocate",'id','fk_bdl_bdgroup');
    }

}
